import {Injectable} from '@angular/core';
import {NgExJsonFormatter} from 'ng-ex-tools';

@Injectable({
  providedIn: 'root'
})
export class InterviewerFormatterService {
  userName: NgExJsonFormatter = {propName: 'user_name', displayName: '姓名'};
  email: NgExJsonFormatter = {propName: 'email', displayName: '邮箱'};
  phoneNumber: NgExJsonFormatter = {propName: 'phone_number', displayName: '电话号码'};
  constructor() {
  }

  get formatter(): NgExJsonFormatter[] {
    return [
      this.userName,
      this.email,
      this.phoneNumber
    ];
  }
}
